package com.wx.javacode.exercise;

/**
 * ClassName:PC
 * Package :com.wx.javacode.exercise
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/17 - 16:02
 */
public class PC extends Computer {
    private String brand;

    public String getBrand() {
        return brand;
    }

    public PC(String cpu, int memory, int disk, String brand) {
        super(cpu, memory, disk);
        this.brand = brand;
    }

    public PC(String cpu, int memory, int disk) {
        super(cpu, memory, disk);
    }
    public String showInfo1() {
        return showInfo()+" brand"+brand;
//        return "cpu=" + pc.getCpu() + " memory=" + pc.getMemory() + " disk=" + pc.getDisk()+" brand="+pc.getBrand();
    }
}
